package com.net.tkc.pro.service;

import com.net.tkc.pro.entity.Take;
import com.net.tkc.pro.impl.TakeImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TakeService implements TakeImpl{
    @Resource
    TakeImpl takeImpl;

    @Override
    public int addTake(Take Take) {
        return takeImpl.addTake(Take);
    }

    @Override
    public int delTake(int id) {
        return takeImpl.delTake(id);
    }

    @Override
    public List<Take> getPostList(int postid) {
        return takeImpl.getPostList(postid);
    }

    @Override
    public List<Take> getTake(int Start, int Page) {
        return getTake(Start, Page);
    }


    @Override
    public int upExamine(int examine, int id) {
        return takeImpl.upExamine(examine, id);
    }
}
